<include file="Public/header"/>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <a class="h3 font-bold">回复设置【图文回复】</a>
            <a href="{:U('Message/addImageText')}" class="btn btn-sm btn-primary m-l pull-right">新增回复</a>
        </div>
        <div class="ibox-content">

            <table class="table table-striped b-t b-light text-sm table-bordered">
                <thead>
                <tr>
                    <th width="10 "><input type="checkbox"></th>
                    <th>ID</th>
                    <th>名称</th>
                    <th>关键词</th>
                    <th>标题</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="_list" id="vo" key="k">
                    <tr>
                        <td><input type="checkbox" name="post[]" value="{$vo.sid}"></td>
                        <td>{$vo.kid}</td>
                        <td>{$vo.msg_name}</td>
                        <td>{$vo.keyword}</td>
                        <td>{$vo.title}</td>
                        <td>
                            <if condition="$vo.status eq 1">启用
                                <else/>
                                禁用

                            </if>
                        </td>
                        <td>
                            <a onclick="imageText({$vo.kid})" class="text-info">详情</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                            <a href="{:U('Message/addImageText?kid='.$vo[kid])}" class="text-info">编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                            <a href="{:U('Message/delTextMsg?kid='.$vo[kid])}" class="ajax-get confirm text-info">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
            <div class="page">{$_page}</div>
        </div>
    </div>
</div>

<include file="Public/footer"/>
<script>
    function imageText(kid)
    {
        layer.open({
            type: 2,
            area: ['700px', '530px'],
            fix: false, //不固定
            title:'图文详情',
            maxmin: true,
            content: "{:U('Message/imageTextDetail')}?kid="+kid,
        });

    }
</script>

























